#include "Vector3D.h"

/* VECTOR MATH OVERLOADERS */
Vector3D& Vector3D::operator+ (const Vector3D& vector)
{
	this->x += vector.x;
	this->y += vector.y;
	this->z += vector.z;
	return *this;
}
Vector3D& Vector3D::operator- (const Vector3D& vector)
{
	this->x -= vector.x;
	this->y -= vector.y;
	this->z -= vector.z;
	return *this;
}
Vector3D& Vector3D::operator* (const Vector3D& vector)
{
	this->x *= vector.x;
	this->y *= vector.y;
	this->z *= vector.z;
	return *this;
}
Vector3D& Vector3D::operator/ (const Vector3D& vector)
{
	this->x /= vector.x;
	this->y /= vector.y;
	this->z /= vector.z;
	return *this;
}

/* DOUBLE MATH OVERLOADERS */
Vector3D& Vector3D::operator* (const double& vector)
{
	this->x *= vector;
	this->y *= vector;
	this->z *= vector;
	return *this;
}
Vector3D& Vector3D::operator/ (const double& vector)
{
	this->x /= vector;
	this->y /= vector;
	this->z /= vector;
	return *this;
}